package main.java.game.command;

import main.java.game.Game;
import main.java.game.item.potion.Potion;

public class BuyPotion implements PlayerCommand {

	private Game game;
	private Potion potion;
	
	public BuyPotion (Game game, Potion potion){
		this.game = game;
		this.potion = potion;
		
	}
	public void execute() {
		game.getPlayer().getPotions().add(potion);
		game.getPotions().remove(potion);
		
	}

}
